summaryrefslogtreecommitdiffstats
path: root/src/pages/article/[slug].tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/pages/article/[slug].tsx')
-rw-r--r--src/pages/article/[slug].tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pages/article/[slug].tsx b/src/pages/article/[slug].tsx
index 8c345b7..70a12dc 100644
--- a/src/pages/article/[slug].tsx
+++ b/src/pages/article/[slug].tsx
@@ -43,7 +43,7 @@ const SingleArticle: NextPageWithLayout<ArticleProps> = ({ post }) => {
};
const router = useRouter();
- const locale = router.locale ? router.locale : config.defaultLocale;
+ const locale = router.locale ? router.locale : config.locales.defaultLocale;
useEffect(() => {
addPrismClasses();
@@ -97,7 +97,7 @@ const SingleArticle: NextPageWithLayout<ArticleProps> = ({ post }) => {
discussionUrl: `${config.url}${router.asPath}/#comments`,
editor: { '@id': `${config.url}/#branding` },
image: featuredImage?.sourceUrl,
- inLanguage: config.defaultLocale,
+ inLanguage: config.locales.defaultLocale,
isPartOf: {
'@id': `${config.url}/blog`,
},